package com.mock.statics;

/**
 * @Descripton TODO
 * @Author liutianlong
 * @Date 2022/4/25 Version 1.0
 **/
public class StringUtil {

    /**
     * 比较两个字符串是否相等
     * @param str1
     * @param str2
     * @return
     */
    public static boolean equals(String str1,String str2) {
        if ( str1 == null || str2 == null ) {
            return false;
        }
        return str1.equals(str2);
    }

    public static boolean isEmpty(String msg) {
        throw new RuntimeException("测试消息异常");
    }
}
